import axios from '@/api/fetch';
import SERVER from '@/api/server';

//  查询服务销售预售
export const getServiceSales = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/serviceProject/getServiceSales`, {
    params
  });

//  查询服务预售代码
export const getServiceProduct = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/serviceProject/getServiceProduct`, {
    params
  });

//  新增服务销售预售
export const addServiceSales = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/serviceProject/addServiceSales`, params);

//  删除服务销售预售
export const deleteServiceSales = params =>
  axios.delete(`${SERVER.DMSCLOUD_REPAIR}/serviceProject`, {
    params
  });
